package cn.shyouchi.wuguanjia.android.ui.event.temporary;

import android.os.Parcel;
import android.os.Parcelable;

import java.util.List;

/**
 * Created by Eenie on 2016/11/17 at 10:05
 * Email: 472279981@qq.com
 * Des:
 */

public class TemporaryEntity {


    /**
     * resultCode : 0
     * resultMessage : [{"id":9,"projectname":"文化广场","projectleader":"刘德华","startingtime":"16:26","endtime":"22:26","address":"永嘉路36号","description":"文化广场煮点","phone":"13800138000"}]
     */

    private int resultCode;
    private List<ResultMessageBean> resultMessage;

    public int getResultCode() {
        return resultCode;
    }

    public void setResultCode(int resultCode) {
        this.resultCode = resultCode;
    }

    public List<ResultMessageBean> getResultMessage() {
        return resultMessage;
    }

    public void setResultMessage(List<ResultMessageBean> resultMessage) {
        this.resultMessage = resultMessage;
    }

    public static class ResultMessageBean implements Parcelable {
        /**
         * id : 9
         * projectname : 文化广场
         * projectleader : 刘德华
         * startingtime : 16:26
         * endtime : 22:26
         * address : 永嘉路36号
         * description : 文化广场煮点
         * phone : 13800138000
         */

        private int id;
        private String projectname;
        private String projectleader;
        private int number;
        private String startingtime;
        private String endtime;
        private String address;
        private String description;
        private String phone;
        private String time;
        private String owner_company;
        private String owner_contacts;
        private String owner_phone;





        public int getId() {
            return id;
        }

        public void setId(int id) {
            this.id = id;
        }

        public String getProjectname() {
            return projectname;
        }

        public void setProjectname(String projectname) {
            this.projectname = projectname;
        }

        public String getProjectleader() {
            return projectleader;
        }

        public void setProjectleader(String projectleader) {
            this.projectleader = projectleader;
        }

        public int getNumber() {
            return number;
        }

        public void setNumber(int number) {
            this.number = number;
        }

        public String getStartingtime() {
            return startingtime;
        }

        public void setStartingtime(String startingtime) {
            this.startingtime = startingtime;
        }

        public String getEndtime() {
            return endtime;
        }

        public void setEndtime(String endtime) {
            this.endtime = endtime;
        }

        public String getAddress() {
            return address;
        }

        public void setAddress(String address) {
            this.address = address;
        }

        public String getDescription() {
            return description;
        }

        public void setDescription(String description) {
            this.description = description;
        }

        public String getPhone() {
            return phone;
        }

        public void setPhone(String phone) {
            this.phone = phone;
        }

        public String getTime() {
            return time;
        }

        public void setTime(String time) {
            this.time = time;
        }

        public String getOwner_company() {
            return owner_company;
        }

        public void setOwner_company(String owner_company) {
            this.owner_company = owner_company;
        }

        public String getOwner_contacts() {
            return owner_contacts;
        }

        public void setOwner_contacts(String owner_contacts) {
            this.owner_contacts = owner_contacts;
        }

        public String getOwner_phone() {
            return owner_phone;
        }

        public void setOwner_phone(String owner_phone) {
            this.owner_phone = owner_phone;
        }

        @Override
        public int describeContents() {
            return 0;
        }

        @Override
        public void writeToParcel(Parcel dest, int flags) {
            dest.writeInt(this.id);
            dest.writeString(this.projectname);
            dest.writeString(this.projectleader);
            dest.writeInt(this.number);
            dest.writeString(this.startingtime);
            dest.writeString(this.endtime);
            dest.writeString(this.address);
            dest.writeString(this.description);
            dest.writeString(this.phone);
            dest.writeString(this.time);
            dest.writeString(this.owner_company);
            dest.writeString(this.owner_contacts);
            dest.writeString(this.owner_phone);
        }

        public ResultMessageBean() {
        }

        protected ResultMessageBean(Parcel in) {
            this.id = in.readInt();
            this.projectname = in.readString();
            this.projectleader = in.readString();
            this.number = in.readInt();
            this.startingtime = in.readString();
            this.endtime = in.readString();
            this.address = in.readString();
            this.description = in.readString();
            this.phone = in.readString();
            this.time = in.readString();
            this.owner_company = in.readString();
            this.owner_contacts = in.readString();
            this.owner_phone = in.readString();
        }

        public static final Parcelable.Creator<ResultMessageBean> CREATOR = new Parcelable.Creator<ResultMessageBean>() {
            @Override
            public ResultMessageBean createFromParcel(Parcel source) {
                return new ResultMessageBean(source);
            }

            @Override
            public ResultMessageBean[] newArray(int size) {
                return new ResultMessageBean[size];
            }
        };
    }
}
